<script setup lang="ts">
import MenuTree from "@/views/MenuTree.vue";
import {useMenuStore} from '@/stores/menu'
let m: any[] = JSON.parse(localStorage.getItem("menu") || '')
</script>
<template>
    <el-scrollbar style="height: 100vh;background:#545c64">
        <el-menu active-text-color="#ffd04b"
                 background-color="#545c64"
                 class="el-menu-vertical-demo"
                 default-active="2"
                 text-color="#fff"
                 :collapse="useMenuStore().isCollapse"
                 router>
            <div style="text-align: center;font-size:18px;color:#fff;padding:15px 0">移动点餐后台管理系统</div>
            <menu-tree :menu="m"/>
        </el-menu>
    </el-scrollbar>
</template>
<style scoped>
</style>
